package com.sunbim.rsrv.params.user;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

@Api("json")
public class UserChangePasswordParams {
    @ApiModelProperty(value = "原密码", required = true)
    @JsonProperty("old_password")
    @NotBlank(message = "原密码不能为空")
    public String oldPassword;

    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码不能为空")
    @JsonProperty("new_password")
    public String newPassword;
}
